{php $cateid=$setting['part1'];}
{php $cate1info=$this->getcate($cateid);}
{php $cate1id=$cate1info['id'];}
{php $cate1name=$cate1info['name'];}
{php $cateid=$setting['part2'];}
{php $cate2info=$this->getcate($cateid);}
{php $cate2id=$cate2info['id'];}
{php $cate2name=$cate2info['name'];}
{php $cateid=$setting['part3'];}
{php $cate3info=$this->getcate($cateid);}
{php $cate3id=$cate3info['id'];}
{php $cate3name=$cate3info['name'];}
{php $cateid=$setting['part4'];}
{php $cate4info=$this->getcate($cateid);}
{php $cate4id=$cate4info['id'];}
{php $cate4name=$cate4info['name'];}
<!DOCTYPE html>
<html>
 <head>
  <meta charset="UTF-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0" />
  <meta name="viewport" content="initial-scale=1, width=device-width, maximum-scale=1, user-scalable=no" />
  <meta name="viewport" content="initial-scale=1.0,user-scalable=no,maximum-scale=1" media="(device-height: 568px)" />
  <meta name="apple-mobile-web-app-capable" content="yes" />
  <meta name="apple-touch-fullscreen" content="yes" />
  <meta name="full-screen" content="yes" />
  <meta name="apple-mobile-web-app-status-bar-style" content="black" />
  <meta name="format-detection" content="telephone=no" />
  <meta name="format-detection" content="address=no" />
  <link href="{$res}static/jwap/css/style_v3_{$setting['color']}.css" rel="stylesheet" type="text/css" />
  <link href="{$res}static/jwap/css/jp.bag.css" rel="stylesheet" type="text/css" />
  <link href="{$res}static/jwap/css/jp.plus.css" rel="stylesheet" type="text/css" />
  <link type="text/css" rel="stylesheet" href="{$res}static/jwap/css/alert.css" />
  <link rel="stylesheet" type="text/css" href="{$res}static/jwap/css/amazeui.css">
  {if $setting['skin']==3 && $_GPC['do']!='list_top'}
  <link rel="stylesheet" type="text/css" href="{$plus}dan/amazeui/css/amazeui.css"/>
  <link rel="stylesheet" type="text/css" href="{$res}css/top10.css"/>
  <style>
  .xl_div_001 {
    height: auto;
    border-bottom-width: 1px;
    border-bottom-style: solid;
    border-bottom-color: #E8E8E8;
    font-size: 14px;
    text-align: center;
    color: #5F5F5F;
    padding-top: 12px;
	padding-bottom: 12px;
    width: 25%;
    float: left;
    display: inline;
}
.xl_div_002 {
    height: auto;
    border-bottom-width: 1px;
    border-bottom-style: solid;
    border-bottom-color: #E8E8E8;
    font-size: 14px;
    text-align: center;
    color: #5F5F5F;
    padding-top: 12px;
	padding-bottom: 12px;
    padding-right: 42%;
    padding-left: 29%;
}
.xl_div_006_3 {
    border: 1px solid #FF472E;
    color: #FFFFFF;
    font-size: 16px;
    height: 30px;
    width: 67%;
    float: right;
    margin-top: 15px;
    text-align: center;
    padding-top: 0px;
    background-color: #FF472E;
}

  </style>
  {/if}
  
  {if $_GPC['do']=='index'}
  <link rel="stylesheet" type="text/css" href="{$res}js/swiper-3.3.1.min.css">
  {/if}

  <title>{if !empty($_W['page']['sitename'])}{$_W['page']['sitename']}{else}{$_W['account']['name']}{/if}{if !empty($title)}{$title} {/if}</title>
  <meta name="keywords" content="{if $setting['sitekeyword']}{$setting['sitekeyword']}{else}牛贝折扣-微信淘宝客 @ 微擎we7.cc{/if}">
  <meta name="description" content="{if $setting['sitekeyword']}{$setting['sitekeyword']}{else}牛贝折扣-微信淘宝客 @ 微擎we7.cc{/if}">
  <script src="{$res}static/jwap/js/jquery-1.8.0.js"></script>
  <!--script src="{$res}js/jquery.1.12.4min.js"></script-->
  

  {if $_GPC['do']=='index'}
  <script type="text/javascript" src="{$res}js/swiper-3.3.1.jquery.min.js"></script>
  {/if}

  {if $_GPC['do']!='uc' || $_GPC['do']!='show_all'}
  <script type="text/javascript" src="{$res}js/layer/layer.js"></script>
  {else}
    <script type="text/javascript" src="{$res}js/layer-m/layer.js"></script>
  {/if}
  <!--script type="text/javascript" src="{$res}js/fastclick.min.js"></script>
  <script>$(function() {FastClick.attach(document.body);});</script-->
  
<style type="text/css">*{margin:0; padding:0;}
a{text-decoration: none;}
img{max-width: 100%; height: auto;}
#weixin-tip{display: none; position: fixed; left:0; top:0; bottom:0; background: rgba(0,0,0,0.8); filter:alpha(opacity=80);  height: 100%; width: 100%; z-index: 10000000;}
#weixin-tip p{text-align: center; margin-top: 10%; padding:0 5%;}
#weixin-tip .close{color:#fff;padding:5px;font:bold 20px/24px simsun;text-shadow:0 1px 0 #ddd;position:absolute;top:0;left:5%;}
#weixin-tt.quanpost {position: fixed; left:0; top:0; bottom:0; background: rgba(0,0,0,0.8); filter:alpha(opacity=80);  height: 100%; width: 100%; z-index: 10000000;}
#weixin-tt .close{color:#fff;padding:5px;font:bold 20px/24px simsun;text-shadow:0 1px 0 #ddd;position:absolute;top:0;right:5%;}
</style>

<script src="http://res.wx.qq.com/open/js/jweixin-1.1.0.js"></script>
<script type="text/javascript">
	if(navigator.appName == 'Microsoft Internet Explorer'){
		if(navigator.userAgent.indexOf("MSIE 5.0")>0 || navigator.userAgent.indexOf("MSIE 6.0")>0 || navigator.userAgent.indexOf("MSIE 7.0")>0) {
			alert('您使用的 IE 浏览器版本过低, 推荐使用 Chrome 浏览器或 IE8 及以上版本浏览器.');
		}
	}
	window.sysinfo = {
		{if !empty($_W['uniacid'])}'uniacid': '{$_W['uniacid']}',{/if}
		{if !empty($_W['acid'])}'acid': '{$_W['acid']}',{/if}{if !empty($_W['openid'])}'openid': '{$_W['openid']}',{/if}
		{if !empty($_W['uid'])}'uid': '{$_W['uid']}',{/if}
		'siteroot': '{$_W['siteroot']}',
		'siteurl': '{$_W['siteurl']}',
		'attachurl': '{$_W['attachurl']}',
		'attachurl_local': '{$_W['attachurl_local']}',
		'attachurl_remote': '{$_W['attachurl_remote']}',
		{if defined('MODULE_URL')}'MODULE_URL': '{MODULE_URL}',{/if}
		'cookie' : {'pre': '{$_W['config']['cookie']['pre']}'}
	};
	// jssdk config 对象
	jssdkconfig = {php echo json_encode($_W['account']['jssdkconfig']);} || {};
	// 是否启用调试
	jssdkconfig.debug = false;
	jssdkconfig.jsApiList = [
		'checkJsApi',
		'onMenuShareTimeline',
		'onMenuShareAppMessage',
		'onMenuShareQQ',
		'onMenuShareWeibo',
		'hideMenuItems',
		'showMenuItems',
		'hideAllNonBaseMenuItem',
		'showAllNonBaseMenuItem',
		'translateVoice',
		'startRecord',
		'stopRecord',
		'onRecordEnd',
		'playVoice',
		'pauseVoice',
		'stopVoice',
		'uploadVoice',
		'downloadVoice',
		'chooseImage',
		'previewImage',
		'uploadImage',
		'downloadImage',
		'getNetworkType',
		'openLocation',
		'getLocation',
		'hideOptionMenu',
		'showOptionMenu',
		'closeWindow',
		'scanQRCode',
		'chooseWXPay',
		'openProductSpecificView',
		'addCard',
		'chooseCard',
		'openCard',
		'openAddress'
	];
	</script>
 </head>
 <body>
  
  <link type="text/css" rel="stylesheet" href="{$res}static/jwap/css/global.css" />
  <div class="main" id="mainall">
   
 
   {template 'leftmenu'}
   


   <div class="app">
    <!--div class="go-app">
     <a href="" class="joa_load_app"><img src="data/upload/banner/1603/31/56fcb79593657.png" /><i class="closed"></i></a>
    </div-->
    <header id="head" class="head">
     <div class="fixtop">
	  {if $_GPC['do']=='index'}
      <span id="classify" class="classify"><a href="javascript:;" class="btn btn-left btn-type"></a></span>
	  {else}
	  <span id="t-find"><a href="javascript:window.history.go(-1)" class="btn btn-left btn-back" title="返回上一页"></a></span>
	  {/if}
      <!--span id="index"><i class="logo"><img src="data/upload/site/577579304a41b.png" /></i></span-->
	  <span id="t-index">{if $pagename}{$pagename}{else}{$_W['account']['name']}{/if}</span>
      {if $_GPC['do']=='index'}
	  {if $setting['qiandaourl']=='内置'}
	  <span id="user"><a href="javascript:" onclick="gzcode()" class="sign_btn btn btn-right btn-sign2"></a></span>
	  {else}
	  <span id="user"><a href="{$setting['qiandaourl']}" class="sign_btn btn btn-right btn-sign"></a></span>
	  {/if}
	  {else}
	  <span id="classify" class="classify"><a href="javascript:;" class="btn btn-right btn-type"></a></span>
	  {/if}
     </div>
    </header>
    
	{if $_GPC['do']=='show' || $_GPC['do']=='show_dtk'  || $_GPC['do']=='show_all' || $_GPC['do']=='list_top' || $_GPC['do']=='uc'}
	{else}
	<!--div id="search">
     <div id="search-box" class="searchbox">
      <span id="classify" class="classify ditops"><a href="javascript:;" class="btn bs btn-left btn-type"></a></span>
      <form id="search-form" action="./index.php" method="get">
	        <input type="hidden" name="c" value="entry" />
			<input type="hidden" name="i" value="{$_W['uniacid']}" />
        	<input type="hidden" name="m" value="bsht_tbk" />
        	<input type="hidden" name="do" value="search" />
            {if $_GPC['cate_id']}
            <input type="hidden" name="cate_id" value="{$_GPC['cate_id']}" />
			{/if}

       <div class="box-search" id="box-search">
        <input type="text" id="sokey" name="keywords" x-webkit-speech="" placeholder="搜索商品" autocomplete="off" value="{if $_GPC['keywords']}{$_GPC['keywords']}{/if}" />
       </div>
       <button class="buton"><img src="{$res}static/jwap/images/search.png" /></button>
      </form>
     </div>
    </div-->


	<!--newso-->
<!--置顶导航条开始-->

<div id="Fill_006" onclick="sq_xl()"></div>
<div id="search" style="display:none">
<div id="div_Float_002">
	<div class="word_div_001" id="search-box">
		<div class="div_Return_001" onclick="javascript:history.go(-1);return false;"></div>
			<!--div id="word_Button_002"></div-->
			
		<form id="search-form" action="./index.php" method="get">
		    <div class="buton" id="word_Button_002" onclick="goso();"></div>
			<input type="hidden" name="c" value="entry" />
			<input type="hidden" name="i" value="{$_W['uniacid']}" />
        	<input type="hidden" name="m" value="bsht_tbk" />
        	<input type="hidden" name="do" value="search" />
            {if $_GPC['cate_id']}
            <input type="hidden" name="cate_id" value="{$_GPC['cate_id']}" />
			{/if}			
			<input type="text" class="word_input3" value="" placeholder="" onfocus="this.className = 'word_input4';document.getElementById('word_Button_002').style.display='inline';document.getElementById('div_Return_002').style.display='none';" onblur="if(this.value==''){this.className = 'word_input3';document.getElementById('word_Button_002').style.display='none';document.getElementById('div_Return_002').style.display='block';}else{}" onkeydown="if(event.keyCode==13) {word('word')}" id="sokey" name="keywords" style="width:auto">
		</form>
		<div class="div_Return_002" id="div_Return_002" onclick="javascript:window.location.href='{php echo $this->createMobileUrl('index');}';"></div>
	</div>
<table width="100%" height="39" border="0" cellpadding="0" cellspacing="0" class='stable'>
  <tbody><tr align="center" valign="middle">
		<td width="29%" onclick="zksq_xl(1,320)"><span class="STYLE3" id="dc_xl_001" style="color: rgb(255, 95, 73);">全部分类</span><img id="cx_xl_img1" src="{$res}static/jwap/images/spike_030.png" width="12" height="7" class="lm_img_001"><div class="Fill_004"></div></td>
		<td width="29%" onclick="zksq_xl(2,120)"><span class="STYLE3" id="dc_xl_002" style="color: rgb(255, 95, 73);">优惠最多</span><img id="cx_xl_img2" src="{$res}static/jwap/images/spike_030.png" width="12" height="7" class="lm_img_001"><div class="Fill_004"></div></td>
		<td width="29%" onclick="zksq_xl(3,287)"><span class="STYLE3" id="dc_xl_003" style="color: rgb(255, 95, 73);">筛选</span><img id="cx_xl_img3" src="{$res}static/jwap/images/spike_030.png" width="12" height="7" class="lm_img_001"><div class="Fill_004"></div></td>
		<td width="13%" onclick="gzcode();"><img id="cx_xl_img4" src="{$res}static/jwap/images/spike_032.png" width="17" height="17" class="lm_img_002"><div class="Fill_005"></div></td>
  </tr>
</tbody></table>
</div>
</div>
<!--下拉导航开始-->
<div id="xl_001">
	
<ul style="width:100%">	
{loop $allcateall $ii}
<li class="xl_div_001" onclick="javascript:window.location.href='{php echo $this->createMobileUrl('list_all', array('cate_id' => $ii['id']))}';" {if $show}{if $ii['id']==$show['cate_id']}style="color: rgb(255, 95, 73);"{/if}{else}{if $_GPC['cate_id']==$ii['id']}style="color: rgb(255, 95, 73);"{/if}{/if}>{$ii['name']}</li>
{/loop}
</ul>



</div>
<div id="xl_002">
<input value="" id="tmptpye" type="hidden">
    <div class="xl_div_002" data-id="moren">默认排序</div>
	<div class="xl_div_002" data-id="ishot">销量最高</div>
	<div class="xl_div_002" data-id="ishit">点击最多</div>
	<div class="xl_div_002" data-id="isfee">价格最低</div>
</div>
<div id="xl_003">
	<!--div class="xl_div_003">
		<div class="xl_div_003_1">只看天猫</div>
		<div class="xl_div_003_2"></div>
	</div-->
	<div class="xl_div_004">
		<div class="xl_div_004_1">价格区间(元)</div>
		<div class="xl_div_004_2"></div>
		<input name="sx_jg2" type="number" class="xl_div_004_3" value="" placeholder="0"  id="maxfee">
		<div class="xl_div_004_4"></div>
		<input name="sx_jg1" type="number" class="xl_div_004_3" value="" placeholder="0"  id="minfee">
	</div>
	<div class="Fill_006"></div>
	<div class="xl_div_006">
		<!--div class="xl_div_006_2"></div-->
		<div class="xl_div_006_3" id="topsearch">确认</div>
	</div>
</div>
<script>
$(document).ready(function(){
$('#search').css('width',$('.app').width());
$('#xl_001').css('width',$('.app').width());
$('#xl_002').css('width',$('.app').width());
$('#xl_003').css('width',$('.app').width());
$("#sokey").css('width',$('.app').width()*0.75);
$(".word_div_001").css('border-bottom-width','0px');
$(".word_div_001").css('padding-bottom','5px');

//$(".yhjurl2").click(function(){ 
　 //var yhjjumpurl = $(this).attr('data-url');
   //alert(yhjjumpurl);
//}); 

});
</script>
<script>var zz,xl_flxz,xl_pxxz,xl_sxxz,typename,minfee,maxfee,istmall;var sx_anniu=0;</script>
<script>
var pageH = $(document.body).height(); //页面总高度 
var scrollT = $(window).scrollTop(); //滚动条top 
var dc_xl=0;


function goso(){
var gosokey=$('#sokey').val();
//alert(gosokey);
if(gosokey){window.location.href="{php echo $this->createMobileUrl('search');}&keywords="+gosokey;}
}

function zksq_xl(type,value){
	if(dc_xl!=type){
		document.getElementById('Fill_006').style.display='inline';
		document.getElementById('dc_xl_00'+type).style.color="#FF5F49";
		document.getElementById("cx_xl_img"+type).src="{$res}static/jwap/images/spike_031.png";
		//document.getElementById("xl_00"+type).style.height= (value)+"px";
		document.getElementById("xl_00"+type).style.height= "auto";
		if(dc_xl!=0){
			document.getElementById("xl_00"+dc_xl).style.height="0px";
			document.getElementById("cx_xl_img"+dc_xl).src="{$res}static/jwap/images/spike_030.png";
			if((dc_xl==1 && xl_flxz>0) || (dc_xl==2 && xl_pxxz>0) || (dc_xl==3  && xl_sxxz>0)){
				dc_xl = type;
				return false;
			}
			document.getElementById('dc_xl_00'+dc_xl).style.color="#5F5F5F";
		}
		dc_xl = type;
	}
	else{
		document.getElementById("cx_xl_img"+type).src="{$res}static/jwap/images/spike_030.png";
		document.getElementById("xl_00"+type).style.height="0px";
		document.getElementById('Fill_006').style.display='none';
		if((dc_xl==1 && xl_flxz>0) || (dc_xl==2 && xl_pxxz>0) || (dc_xl==3  && xl_sxxz>0)){
			dc_xl = 0;
			return false;
		}
		document.getElementById('dc_xl_00'+type).style.color="#5F5F5F";
		dc_xl=0;
	}
}
function sq_xl(){
		document.getElementById("cx_xl_img"+dc_xl).src="{$res}static/jwap/images/spike_030.png";
		document.getElementById("xl_00"+dc_xl).style.height="0px";
		document.getElementById('Fill_006').style.display='none';
		if((dc_xl==1 && xl_flxz>0) || (dc_xl==2 && xl_pxxz>0) || (dc_xl==3  && xl_sxxz>0)){
			dc_xl = 0;
			return false;
		}
		document.getElementById('dc_xl_00'+dc_xl).style.color="#5F5F5F";
		dc_xl=0;
}
</script>
<!--置顶导航条结束-->

	<!--newso-->


{if $settings['isalldiy']!=1}
    <div class="nav_box" style="display:{if $setting['isnav']==1}block{else}none{/if}">
     <nav class="nav" id="nav">
      <ul class="">
       <li><a {if $_GPC['do']=='index' || $_GPC['do']=='list_all'}class="active"{/if} href="{php echo $this->createMobileUrl('index', array('op' => 'new'))}" target="_self"><em class="icon icon-jz"></em><span>{if $setting['isdtk']==2}领券直播{/if}{if $setting['isdtk']==1}折扣首页{/if}{if $setting['isdtk']==0}新品上架{/if}</span><em class="line"></em></a></li>
       

{if $setting['isdtk']==2}

      <li><a {if $_GPC['do']=='list_tops' || $_GPC['do']=='list_top'}class="active"{/if} href="{php echo $this->createMobileUrl('list_tops')}" target="_self"><em class="icon icon-yg"></em><span>专题推荐</span><em class="line"></em></a></li>

{/if}
{if $setting['isdtk']==1}

      <li><a {if $_GPC['do']=='list_dtk'}class="active"{/if} href="{php echo $this->createMobileUrl('list_dtk')}" target="_self"><em class="icon icon-yg"></em><span>领券直播</span><em class="line"></em></a></li>

{/if}
{if $setting['isdtk']==0}
	   <li><a {if $_GPC['cate_id']==$cate1id}class="active"{/if} href="{php echo $this->createMobileUrl('list', array('cate_id' => $cate1id))}" target="_self"><em class="icon icon-yg"></em><span>{$cate1name}</span><em class="line"></em></a></li>
{/if}
	   
{if $setting['isshow']==1}
	   <li><a {if $_GPC['do']=='show_dan'}class="active"{/if} href="{php echo $this->createMobileUrl('show_dan', array('op' => 'index'))}" target="_self"><em class="icon icon-bz"></em><span>有奖晒单</span><em class="line"></em></a></li>
{else}	   
	   <li><a {if $_GPC['cate_id']==$cate2id}class="active"{/if} href="{php echo $this->createMobileUrl('list', array('cate_id' => $cate2id))}" target="_self"><em class="icon icon-bz"></em><span>{$cate2name}</span><em class="line"></em></a></li>
{/if}
	   
       
	   
	   
	   <li class="_border"><a {if $_GPC['do']=='uc' || $_GPC['do']=='fav'}class="active"{/if} href="{php echo $this->createMobileUrl('uc', array('op' => 'new'))}" target="_self"><em class="icon icon-user"></em><span>用户中心</span><em class="line"></em></a></li>
      </ul>
     </nav>
    </div>


{else}
<div class="nav_box" style="display:{if $setting['isnav']==1}block{else}none{/if}">
     <nav class="nav" id="nav">
      <ul class="">
      <li><a {if $_GPC['do']=='index' || $_GPC['do']=='list_all'}class="active"{/if} href="{$settings['urldiy_b1']}"><em class="icon icon-jz"></em><span>{$settings['urldiy_b11']}</span><em class="line"></em></a></li>

	  <li><a {if $_GPC['do']=='list_dtk'}class="active"{/if} href="{$settings['urldiy_b2']}"><em class="icon icon-yg"></em><span>{$settings['urldiy_b22']}</span><em class="line"></em></a></li>

	  <li><a {if $_GPC['do']=='show_dan'}class="active"{/if} href="{$settings['urldiy_b3']}"><em class="icon icon-bz"></em><span>{$settings['urldiy_b33']}</span><em class="line"></em></a></li>

	  <li class="_border"><a {if $_GPC['do']=='uc' || $_GPC['do']=='fav'}class="active"{/if} href="{$settings['urldiy_b4']}"><em class="icon icon-user"></em><span>{$settings['urldiy_b44']}</span><em class="line"></em></a></li>
	  </ul>
      </nav>
</div>
{/if}

{/if}
